<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
    // 直接使用隐式对象 session
    // 检查是否已经成功签到
    Boolean hasSignedIn = (Boolean) session.getAttribute("hasSignedIn");
    if (hasSignedIn == null || !hasSignedIn) {
        // 未签到，重定向到 login.jsp
        response.sendRedirect("login.jsp");
        return;
    }

    String name = (String) session.getAttribute("name");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>签到成功</title>
</head>
<body>
    <h1><%= name %> 签到成功！</h1>
</body>
</html>
